package org.foundation.jala.jamerzip.components;

public class JamerElement {
	private String name;
	private long crc;
	private long compressionSize;
	private long originalSize;
	private short lastModificationTime;
	private short lastModificationDate;

	public JamerElement(String name, long crc, long compressionSize,
			long originalSize, short lastModificationDate, 
			short lastModificationTime) {
		this.name = name;
		this.crc = crc;
		this.compressionSize = compressionSize;
		this.originalSize = originalSize;
		this.lastModificationDate = lastModificationDate;
		this.lastModificationTime = lastModificationTime;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public long getCrc() {
		return crc;
	}

	public long getCompressionSize() {
		return compressionSize;
	}

	public long getOriginalSize() {
		return originalSize;
	}

	public short getLastModificationTime() {
		return lastModificationTime;
	}

	public short getLastModificationDate() {
		return lastModificationDate;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}
